﻿<UserControl x:Class="WpfImageDuplicates.TopCommandBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid Height="26" Width="Auto" HorizontalAlignment="Stretch">
        <ToolBarTray Background="White" HorizontalAlignment="Stretch">
            <ToolBar Band="1" BandIndex="1">
                <TextBlock Text="Thumbnail Width: " Margin="2,0,0,0" VerticalAlignment="Center" />
                <TextBox AcceptsReturn="False" x:Name="txtWidth" KeyDown="txtWidth_KeyDown" MinWidth="60"/>
                <TextBlock Text="Height: " Margin="2,0,0,0" VerticalAlignment="Center" />
                <TextBox AcceptsReturn="False" x:Name="txtHeight" KeyDown="txtHeight_KeyDown" MinWidth="60"/>
                <Button Click="Button4_Click">
                    <TextBlock Text="Change Thumbnail Size"/>
                </Button>                
                <TextBlock Text="Image Count: " Margin="4,0,0,0" VerticalAlignment="Center" />
                <TextBlock x:Name="txtItems" Text="{Binding Count}" VerticalAlignment="Center" MinWidth="60" />
                <Button Click="Button1_Click" Visibility="Collapsed">
                    <TextBlock Text="Show Full Size"/>
                </Button>                
                <Button Click="Button2_Click">
                    <TextBlock Text="Remove Duplicates"/>
                </Button>
                <Button Click="Button3_Click">
                    <TextBlock Text="Compare"/>
                </Button>                
            </ToolBar>
        </ToolBarTray>
    </Grid>
</UserControl>
